package com.lxmes.business.mapper;

import java.util.List;
import com.lxmes.business.domain.CcDiscrepancyAdjustment;
import com.lxmes.common.annotation.DataScope;

/**
 * 差异调整Mapper接口
 *
 * @author lx
 * @date 2023-06-29
 */
public interface CcDiscrepancyAdjustmentMapper
{
    /**
     * 查询差异调整
     *
     * @param id 差异调整主键
     * @return 差异调整
     */
    public CcDiscrepancyAdjustment selectCcDiscrepancyAdjustmentById(Long id);

    /**
     * 查询差异调整列表
     *
     * @param ccDiscrepancyAdjustment 差异调整
     * @return 差异调整集合
     */
    @DataScope(deptAlias = "de", userAlias = "de")
    public List<CcDiscrepancyAdjustment> selectCcDiscrepancyAdjustmentList(CcDiscrepancyAdjustment ccDiscrepancyAdjustment);

    /**
     * 新增差异调整
     *
     * @param ccDiscrepancyAdjustment 差异调整
     * @return 结果
     */
    public int insertCcDiscrepancyAdjustment(CcDiscrepancyAdjustment ccDiscrepancyAdjustment);

    /**
     * 修改差异调整
     *
     * @param ccDiscrepancyAdjustment 差异调整
     * @return 结果
     */
    public int updateCcDiscrepancyAdjustment(CcDiscrepancyAdjustment ccDiscrepancyAdjustment);

    /**
     * 删除差异调整
     *
     * @param id 差异调整主键
     * @return 结果
     */
    public int deleteCcDiscrepancyAdjustmentById(Long id);
    public int emptyInventory();

    /**
     * 批量删除差异调整
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCcDiscrepancyAdjustmentByIds(Long[] ids);


}
